<?php /* Smarty version 2.6.18, created on 2009-09-30 05:49:15
         compiled from newMessage.tpl */ ?>
<form name="mainForm" method="POST" id="mainForm">
<table class="popup" border="0" cellspacing=0 cellpadding=0>
	<tr><td><div class="pop">
		<div class="top_pop"><img src="/app/default/www/images/top_left_pop.jpg" /></div> 
		<div id="drag_bar"><h2 class="pop_h2">New Message</h2></div>
		<div class="content">
			<table border="0" width="100%">
				<tr>
					<td nowrap>Send To:</td>
					<td>
						<select name="user[recipient]">
						<?php $_from = $this->_tpl_vars['owners']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['owner']):
?>
							<option value="<?php echo $this->_tpl_vars['owner']['org_id']; ?>
"><?php echo $this->_tpl_vars['owner']['name']; ?>
</option>
						<?php endforeach; endif; unset($_from); ?>
						</select>
					</td>
				</tr>
				<tr>
					<td>Subject:</td>
					<td><input type="text" name="user[subject]" value="" size="60"></td>
				</tr>
				<tr>
					<td colspan="2"><textarea name="user[body]" cols="50" rows="20"></textarea></td>
				</tr>
				<tr height="30px">
					<td colspan="2" align="center" style="padding-top: 20px">
						<input type="button" value="Send Message" onclick="saveMessage();">&nbsp;
						<input type="button" value="Close" onclick="popup('newMessage');">
					</td>
				</tr>
			</table>
		</div>
		<div class="btm_pop"><img src="/app/default/www/images/btm_left_pop.jpg"  alt="" />
	</div></td></tr>
</table>
</form>
<script language="javascript">
<?php echo '
	function saveMessage() {
		popup(\'newMessage\');
		doajaxAction("/account/saveMessage/",1,\'main_content\',document.getElementById(\'mainForm\'));
	}

'; ?>

</script>
	